package org.jackysoft.entity;

import java.util.List;






import org.jackysoft.annotations.Transient;
import org.jackysoft.bean.define.EntitySchemas;
import org.jackysoft.entity.base.AbstractNoIdEntity;
import org.jackysoft.util.VariableType;

import com.google.common.base.Splitter;



public class OsRuntimeContext extends AbstractNoIdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6238309906424246922L;

	private String refname;
	private long step;
	private int action;
	private VariableType varType;
	private String value;
	private char sepachar=';';

	
	public String getValue() {
		return value;
	}
	

	public void setValue(String value) {
		this.value = value;
	}

	

	public char getSepachar() {
		return sepachar;
	}

	public void setSepachar(char sepachar) {
		this.sepachar = sepachar;
	}


	public VariableType getVarType() {
		return varType;
	}


	public void setVarType(VariableType varType) {
		this.varType = varType;		
		
	}	
	
	@Transient
	public List<String> valueList(){
		return	Splitter.on(this.sepachar).splitToList(value);
	}


	public String getRefname() {
		return refname;
	}


	public void setRefname(String refname) {
		this.refname = refname;
	}


	public long getStep() {
		return step;
	}


	public void setStep(long step) {
		this.step = step;
	}


	public int getAction() {
		return action;
	}


	public void setAction(int action) {
		this.action = action;
	}
	

}
